package 反射.T2;

import java.lang.reflect.Constructor;

public class T2 {

    public static void main(String[] args) throws Exception {

        Class<?> aClass = Class.forName("反射.T2.Student");
        Constructor<?> constructor = aClass.getConstructor(String.class);
        Object obj = constructor.newInstance("张三");
        System.out.println(obj);

    }
}
